package cn.stylefeng.guns.modular.api.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * 销售管理
 * </p>
 *
 * @author wusonghe
 * @since 2019-08-31
 */
@TableName("info_sale")
@Data
public class Sale implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 销售单ID
     */
    @TableId(value = "sale_id", type = IdType.AUTO)
    private Integer saleId;

    @TableField("worker")
    private String worker;

    @TableField(value = "product_list")
    private String productList;

    @TableField(value = "client")
    private String client;

    @TableField(value = "order_id")
    private Long orderId;

    @TableField(value = "farm_id")
    private Long farmId;

    @TableField(value = "remark")
    private String remark;

    @TableField(value = "pay_way")
    private Integer payWay;
    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time", fill = FieldFill.UPDATE)
    private Date updateTime;


}
